package com.choosefine.it.team.service;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.common.exception.BusinessException;
import com.choosefine.it.team.model.TeamWorkersCollection;
import com.choosefine.it.team.model.vo.TeamWorkersCollectionVO;
import com.github.pagehelper.Page;

import java.util.Map;

public interface TeamWorkersCollectionService {


	/**
	 * 根据用户code得到收藏工人列表
	 * @param params
	 * @return
	 */

	Page<TeamWorkersCollectionVO> selectWorkersCollectionByUserCode(Map<String,Object> params, PageDTO pageDTO);

	/**
	 * 取消收藏
	 */
	public Integer deleteCollection(Map<String, Object> params) throws BusinessException;

	/**
	 * 11.19插入班组收藏工人列表
	 * 
	 * @param
	 * @return
	 */
	int insertSelective(Map  map);

	/**
	 * 根据id查询某条记录
	 */
	TeamWorkersCollection selectbyId(Integer id);
}
